/**
 * Created by beizhi on 2017/7/16.
 */
import Vue from 'vue'
import VueRouter from 'vue-router'
import index from '../components/index.vue'
import Page1 from '../components/Page1.vue'
import Page2 from '../components/Page2.vue'
import Page3 from '../components/Page3.vue'
Vue.use(VueRouter)

const router = new VueRouter({
    //mode: 'history',
    routes: [
        //{path: '/', component: index},
        {name: "home", path: "/home", component: index},
        {name: "Page1", path: '/Page1', component: Page1},
        {name: "Page2", path: '/Page2', component: Page2},
        {name: "Page3", path: '/Page3', component: Page3}
    ]
})

export default router;